﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RCSP.Common.Configurations
{
    public class PropertyMapping
    {
        /// <summary>
        /// Creates new instance
        /// </summary>
        /// <param name="propertyName">Name of the property</param>
        /// <param name="isReadOnly">Read-only mapping</param>
        public PropertyMapping(string propertyName, bool isReadOnly)
        {
            this.ColumnName = propertyName;
            this.IsReadOnly = isReadOnly;
        }

        /// <summary>
        /// Column name
        /// </summary>
        public string ColumnName { get; private set; }

        /// <summary>
        /// Read only property
        /// </summary>
        public bool IsReadOnly { get; private set; }
    }
}
